<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>.stop修饰符</title>
    <style>
        .rect{display: flex;width: 400px;height: 200px;background-color: #e45757;}
        .blue{width: 100px;height: 100px;background-color: blue;}
        .yellow{width: 100px;height: 100px;background-color: yellow;}
    </style>
</head>
<body>
    <script src="/js/vue.js"></script>
    <div id ="app">
      <div class="rect" v-on:click="alterYRed">
        <div class="blue" v-on:click="alterBlue">我是蓝色部分</div>
        <div class="yellow" v-on:click="alterYellow">我是蓝色部分</div>
      </div>
    </div>
    
    <script>
       var vm =new Vue({
         el:"#app",
         data:{},
         methods:{
            alertBlue:function(){
                console.log("blue");
            },
            alertYellow:function(){
                console.log("yellow");},

            alertRed:function(){
                console.log("red")
            }
        }
    })

       
    </script> 
    
</body>
</html>